
/** When your routing table is too long, you can split it into small modules**/

import Layout from "@/layout/index.vue";

const shoppingOrderRouter = {
    path: '/shoppingOrder',
    component: Layout,
    redirect: 'noRedirect',
    name: 'oreder',
    meta: {
        title: '商品订单',
        icon: 's-data'
    },
    children: [
        {
            path: 'allOrder',
            component: () => import('@/views/shoppingOrder/allShoppingOrder.vue'),
            name: 'allOrder',
            meta: { title: '全部订单', noCache: true }
        },
		{
		    path: 'awaitPayOrder',
		    component: () => import('@/views/shoppingOrder/awaitPayOrder.vue'),
		    name: 'awaitPayOrder',
		    meta: { title: '待支付订单', noCache: true  }
		},
		{
		    path: 'deliveryShoppingOrder',
		    component: () => import('@/views/shoppingOrder/deliveryShoppingOrder.vue'),
		    name: 'deliveryShoppingOrder',
		    meta: { title: '待配送订单', noCache: true  }
		},
        {
            path: 'completeShoppingOrder',
            component: () => import('@/views/shoppingOrder/completeShoppingOrder.vue'),
            name: 'completeShoppingOrder',
            meta: { title: '已完成订单', noCache: true  }
        },
    ]
}

export default shoppingOrderRouter
